import java.util.List;

public class Demo {
    public static void main(String[] args) {

        AnimalService animalService = new AnimalService() {
            @Override
            public void addAnimal(Animal animal) {

            }

            @Override
            public void deleteAnimal(int id) {

            }

            @Override
            public void updateAnimal(Animal animal) {

            }

            @Override
            public Animal getAnimal(int id) {
                return null;
            }

            @Override
            public List<Animal> getAllAnimals() {
                return List.of();
            }
        };
        Animal animal = new Animal(1,"dog",2,"male");
        animalService.addAnimal(animal);
        animalService.deleteAnimal(1);
        animalService.updateAnimal(animal);
        Animal animal1 = animalService.getAnimal(1);
        System.out.println(animal1);
        List<Animal> animals = animalService.getAllAnimals();
        for (Animal animal2 : animals) {
            System.out.println(animal2);
        }



    }
}
